package oo_day02;
/** 动物家族的测试 */
public class AnimalTest {
    public static void main(String[] args) {
        Dog dog = new Dog("二哈", 3, "灰");
        dog.eat();      //Dog类重写之后的
        dog.drink();    //复用Animal类的
        dog.lookHome(); //Dog类所特有的
        dog.swim();

        Chick dm = new Chick("多米",1,"黄");
        dm.eat();
        dm.drink();
        dm.layEggs();

        Fish mk = new Fish("萌可",1,"红");
        mk.eat();
        mk.drink();
        mk.swim();

    }
}
